<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>

<title>待处理利息列表</title><span id="navlink">贷后管理  >> 利息管理 >> 待处理利息</span>

<table class="table_box table_bottom_border" cellspacing="0" cellpadding="0">
	<tr>
		<th>合同编号</th>
		<th>放款序号</th>
		<th>借款人名称</th>
		<th>借款金额</th>
		<th>利息开始日</th>
		<th>利息结束日</th>
		<th>当月应计</th>
		<th>待核实利息</th>
		<th>实收利息</th>
		<th>利息余额</th>
		<th style="width:80px">操作</th>
	</tr>
<s:iterator value="contractList" status="index" var="var">
<s:if test="backmoney!=ligrantmoney">
	<tr>
		<td align="center">${contractId}</td>
		<td align="center">${grantnum}</td>
		<td align="center">${customname}</td>
		<td align="right"><s:text name="f.money"><s:param value="principal"/></s:text></td>
		<td align="center"><s:text name="f.date.ymdc"><s:param value="begaindate"/></s:text></td>
		<td align="center"><s:text name="f.date.ymdc"><s:param value="lastdate"/></s:text></td>
		<td align="right"><s:text name="f.money"><s:param value="ligrantmoney"/></s:text></td>
		<td align="right"><s:text name="f.money"><s:param value="waitmoney"/></s:text></td>
		<td align="right"><s:text name="f.money"><s:param value="backmoney"/></s:text></td>
		<td align="right"><s:text name="f.money"><s:param value="balance"/></s:text></td>
		<td align="center" id="${id}">
		<s:if test="balance>0">
			<input type="button" class="printChange" value="生成凭证" />
		</s:if>
		</td>
	</tr>
</s:if>
</s:iterator>
</table>
<div id="button_area"><div class="pagebar"></div></div>

<script type="text/javascript">
$(".printChange").click(function(){
	$thisid=$(this).parent("td").attr("id");
	OpenDialog(750,450,"修改","../creditmanage/creditPrint!printInterest?type=change&id="+$thisid);
});
$(".printsure").click(function(){
	$thisid=$(this).parent("td").attr("id");
	OpenDialog(750,450,"确认","../creditmanage/creditPrint!printInterest?type=sure&id="+$thisid);
});



$(".printdone").click(function(){
	$thisid=$(this).parent("td").attr("id");
	MessageDialog("./creditInterest!printSure?id="+$thisid,"确认打印完成？","");
});
$(".printsure_backup").click(function(){
	$thisid=$(this).parent("td").attr("id");
	MessageDialog("./creditInterest!change?id="+$thisid,"确认完成？","");
});
</script>
